#ifndef __MYFLASH_H
#define __MYFLASH_H

#include "n32g45x.h"

#define BUFFER_SIZE (uint32_t) 7

typedef enum
{
    FAILED = 0,
    PASSED = !FAILED
} Status;

void FLASH_Write(uint32_t uiSRAM_Data_Buffer[]); 
void FLASH_Read(void);
void FLASH_Data_Save(void);
uint32_t Enter_Critical(void);
void Exit_Critical(uint32_t uiPrimask);

#endif

